package org.shop.service.impl;

import java.util.Map;

import org.shop.dao.SupplierMapper;
import org.shop.entity.Supplier;
import org.shop.service.SupplierService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class SupplierServiceImpl extends BaseServiceImpl<Supplier, Long> implements SupplierService{
	@Autowired
	private SupplierMapper supplierMapper;
	@Override
	public Supplier findSupplierByUserId(Long userId) {
		
		return supplierMapper.findSupplierByUserId(userId);
	}
	@Override
	public Supplier findSupplierBySupplierName(Map<String, Object> paramMap) {
		
		return supplierMapper.findSupplierBySupplierName(paramMap);
	}
	
}